# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=aeskeyfind
pkgver=1.0
pkgrel=5
groups=('blackarch' 'blackarch-cracker' 'blackarch-forensic')
pkgdesc='A tool to find AES key in RAM.'
arch=('x86_64' 'aarch64')
url='http://citp.princeton.edu/memory/code/'
license=('BSD')
source=("http://citpsite.s3-website-us-east-1.amazonaws.com/oldsite-htdocs/memory-content/src/$pkgname-$pkgver.tar.gz")
sha512sums=('a523e0edb47c4f0386fc692c5ba7a858e6bf79e870980c7e7338f41fbdd29ecd9855269801c8581047a039d014d242652632676650c3b859c2d23f47bc231713')

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/bin"

  install -Dm 755 aeskeyfind "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

